import Vue from 'vue'
import App from './App'
import store from './store'
import { http } from '@/api/service.js'
import uView from '@/uni_modules/uview-ui'
import * as Global from './utils/global';
Vue.use(uView)


Vue.prototype.$http = http
Vue.config.productionTip = false
Vue.prototype.$store=store

// 获取h5链接参数
// Vue.prototype.$getURLParams = function() {
// 	var url = window.location.search;
// 	var theRequest = new Object();
// 	if (url.indexOf("?") != -1) {
// 		var str = url.substr(1);
// 		var strs = str.split("&");
// 		for (var i = 0; i < strs.length; i++) {
// 			theRequest[strs[i].split("=")[0]] = (strs[i].split("=")[1]);
// 		}
// 	}
// 	return theRequest
// }
//载入全局方法和属性
Vue.prototype.$Global = Global

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
